import { regularRule, uploadType } from '@/utils/util'

export const BaseFormConfig = {
	prop: 'dp_service_object',
	inline: false,
	showBtn: false,
	labelPosition: 'top',
	column: [
		{
			label: '照片',
			tip: '',
			prop: 'image',
			type: 'upload',
			labelPosition: 'top',
			showFileList: false,
			limit: 1,
			multiple: false,
			span: 24,
		},
		{
			label: '姓名',
			prop: 'name',
			maxlength: '20',
			showWordLimit: true,
			type: 'text',
			changeField: true,
			rules: [{ required: true, message: '请输入姓名' }],
			span: 8,
		},
		{
			label: '户籍区划',
			prop: 'crAreas',
			propName: 'cr_areas',
			type: 'AplidAreaSelect',
			changeField: true,
			rules: [{ required: true, message: '请选择户籍区划' }],
			span: 8,
		},
		{
			label: '户籍地址',
			prop: 'crAddress',
			maxlength: '140',
			showWordLimit: true,
			changeField: true,
			type: 'text',
			rules: [{ required: true, message: '请输入户籍地址' }],
			span: 8,
		},
		{
			label: '户籍地邮政编码',
			prop: 'crPostalCode',
			maxlength: '6',
			showWordLimit: true,
			type: 'text',
			span: 8,
		},
		{
			label: '证件类型',
			prop: 'cardType',
			propName: 'cardTypeLabel',
			type: 'remoteSelect',
			code: 'ID_CARD_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
			changeField: true,
			rules: [{ required: true, message: '请选择证件类型' }],
		},
		{
			label: '证件号码',
			prop: 'idCard',
			type: 'input',
			span: 8,
			editDisabled: true,
			changeField: true,
			rules: [{ required: true, message: '请输入证件号码' }],
		},
		{
			label: '户籍类型',
			prop: 'crType',
			propName: 'crTypeLabel',
			type: 'remoteSelect',
			code: 'REG_RESIDENCE_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 8,
			rules: [{ required: true, message: '请输入户籍类型' }],
		},
		{
			label: '户籍与现居地址一致',
			prop: 'isSameAdress',
			propName: 'isSameAdressLabel',
			type: 'select',
			dicData: [
				{ label: '否', value: 0 },
				{ label: '是', value: 1 },
			],
			changeField: true,
			span: 8,
		},
		{
			label: '是否使用智能手机',
			prop: 'whetherPhone',
			propName: 'whetherPhoneLabel',
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
			control: (e, model) => {
				return {
					telephone: {
						display: e == 1,
					},
				}
			},
			span: 8,
		},
		{
			label: '联系方式',
			prop: 'telephone',
			type: 'input',
			span: 8,
			changeField: true,
			rules: [{ pattern: regularRule.phone, message: '请输入正确的联系电话' }],
		},
		{
			label: '家庭固话',
			prop: 'phone',
			maxlength: '20',
			showWordLimit: true,
			type: 'text',
			changeField: true,
			span: 8,
		},
		{
			label: '现居地区',
			prop: 'areas',
			propName: 'areas_name',
			type: 'AplidAreaSelect',
			changeField: true,
			rules: [{ required: true, message: '请选择现居地区' }],
			span: 8,
		},
		{
			label: '现居地址',
			prop: 'address',
			maxlength: '140',
			showWordLimit: true,
			changeField: true,
			type: 'text',
			rules: [{ required: true, message: '请输入现居地址' }],
			span: 8,
		},
		{
			label: '生存状态',
			prop: 'existence',
			propName: 'existenceLabel',
			type: 'remoteSelect',
			code: 'EXISTENCE_STATUS',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 8,
			rules: [{ required: true, message: '请选择生存状态' }],
		},
		{
			label: '去世时间',
			prop: 'deadTime',
			type: 'date',
			changeField: true,
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			span: 8,
		},
		// {
		// 	label: '养老组织',
		// 	prop: 'organizationCode',
		// 	propName: 'orgHomeName',
		// 	type: 'remoteSelect',
		// 	api: 'dpServiceOrgHome_page',
		// 	filterKey: 'creditCode',
		// 	filterLabel: 'orgHomeName',
		// 	multiple: false,
		// 	changeField: true,
		// 	span: 8,
		// },
		{
			label: '居住情况',
			prop: 'residence',
			propName: 'residenceLabel',
			type: 'remoteSelect',
			code: 'LIVE_SITUATE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 8,
		},
		{
			label: '老人类别（政府兜底保障对象）',
			prop: 'elderlyType',
			propName: 'elderlyTypeLabel',
			type: 'remoteSelect',
			code: 'ELDERLY_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			rules: [{ required: true, message: '请选择老人类别' }],
			span: 8,
		},
		{
			label: '老人类别（探访对象）',
			prop: 'visitorElderlyType',
			propName: 'visitorElderlyTypeLabel',
			type: 'remoteSelect',
			code: 'VISITOR_ELDERLY_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 8,
		},
		{
			label: '常住时间',
			prop: 'liveTime',
			propName: 'liveTimeLabel',
			code: 'LIVE_TIME',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		// {
		// 	label: '存在监护人（联系人）',
		// 	prop: 'isWithGuardian',
		// 	propName: 'isWithGuardianLabel',
		// 	type: 'select',
		// 	rules: [{ required: true, message: '请选择存在监护人（联系人）标志' }],
		// 	dicData: [
		// 		{ label: '否', value: 0 },
		// 		{ label: '是', value: 1 },
		// 	],
		// 	span: 8,
		// },
		// {
		// 	label: '评估状态',
		// 	prop: 'evaluationStatus',
		// 	propName: 'evaluationStatusLabel',
		// 	code: 'EVALUATION_STATUS',
		// 	type: 'remoteSelect',
		// 	api: 'getDictItemList',
		// 	filterKey: 'value',
		// 	dataType: 'number',
		// 	multiple: false,
		// 	span: 8,
		// },
		//------------养老需求-------------
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '养老需求',
			span: 24,
		},
		{
			label: '养老需求',
			prop: 'elderlyCareDemand',
			propName: 'elderlyCareDemandLabel',
			type: 'remoteSelect',
			code: 'ELDERLY_DEMAND',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: true,
			labelPosition: 'top',
			span: 8,
		},
		{
			label: '其他需求',
			prop: 'elderlyCareOther',
			maxlength: '140',
			showWordLimit: true,
			type: 'text',
			labelPosition: 'top',
			span: 8,
		},
		// {
		// 	label: '居家上门服务协议签订组织',
		// 	prop: 'homeOrganizationCode',
		// 	propName: 'homeOrganizationName',
		// 	type: 'remoteSelect',
		// 	api: 'dpServiceOrgHome_page',
		// 	filterKey: 'creditCode',
		// 	filterLabel: 'orgHomeName',
		// 	multiple: false,
		// 	changeField: true,
		// 	span: 8,
		// 	labelPosition: 'top',
		// },

		{
			label: '居家上门服务协议',
			prop: 'homeAgreement',
			type: 'upload',
			fileType: uploadType.fileMetaType,
			listType: 'text',
			labelPosition: 'top',
			showFileList: true,
			limit: 4,
			multiple: true,
			changeField: true,
			span: 12,
		},
		{
			label: '协议到期时间',
			prop: 'homeAgreementDate',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			changeField: true,
			span: 12,
		},

		//------------残疾状况-------------
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '残疾状况',
			span: 24,
		},
		{
			label: '是否残疾',
			prop: 'isDisability',
			propName: 'isDisabilityLabel',
			rules: [{ required: true, message: '请选择是否残疾' }],
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
			control: (e, model) => {
				return {
					disabilityType: {
						display: e == 1,
					},
					disabilityClass: {
						display: e == 1,
					},
					disabilityCertificateId: {
						display: e == 1,
					},
					disabilityPhone: {
						display: e == 1,
					},
					disabilityDate: {
						display: e == 1,
					},
				}
			},
			span: 8,
		},
		{
			label: '残疾类型',
			prop: 'disabilityType',
			propName: 'disabilityTypeLabel',
			type: 'remoteSelect',
			code: 'DISABILITY_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '残疾等级',
			prop: 'disabilityClass',
			propName: 'disabilityClassLabel',
			type: 'remoteSelect',
			code: 'DISABILITY_CLASS',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		// {
		// 	label: '残疾证号',
		// 	prop: 'disabilityCertificateId',
		// 	type: 'text',
		// 	maxlength: '50',
		// 	showWordLimit: true,
		// 	span: 8,
		// },
		{
			label: '残疾证',
			prop: 'disabilityPhoto',
			type: 'upload',
			labelPosition: 'top',
			showFileList: false,
			limit: 1,
			multiple: false,
			span: 12,
		},
		{
			label: '残疾证到期时间',
			prop: 'disabilityDate',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			span: 12,
		},
		//------------能力等级-------------
		{
			type: 'DividerHtml',
			modelValue: '能力等级',
			labelPosition: 'top',
			position: 'center',
			span: 24,
		},
		{
			label: '是否失智',
			prop: 'isLossWisdom',
			propName: 'isLossWisdomLabel',
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
			rules: [{ required: true, message: '请选择是否失智' }],
			span: 8,
		},
		{
			label: '是否完成能力等级评估',
			prop: 'isLevel',
			propName: 'isLevelLabel',
			changeField: true,
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
			span: 24,
		},
		{
			label: '能力评估等级（国标）',
			prop: 'countryLevel',
			propName: 'countryLevelLabel',
			type: 'remoteSelect',
			code: 'ACCESS_LEVEL_COUNTRY',
			api: 'getDictItemList',
			filterKey: 'value',
			changeField: true,
			multiple: false,
			span: 8,
		},
		{
			label: '能力评估等级（国标）评估时间',
			prop: 'countryEvaluationTime',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			changeField: true,
			span: 8,
		},
		{
			label: '能力评估等级（国标）评估单位',
			prop: 'countryLevelUnit',
			maxlength: '50',
			showWordLimit: true,
			changeField: true,
			type: 'text',
			span: 8,
		},

		{
			label: '能力评估等级（市标）',
			prop: 'cityLevel',
			propName: 'cityLevelLabel',
			type: 'remoteSelect',
			code: 'ACCESS_LEVEL_CITY',
			api: 'getDictItemList',
			filterKey: 'value',
			changeField: true,
			multiple: false,
			span: 8,
		},
		{
			label: '能力评估等级（市标）评估时间',
			prop: 'cityEvaluationTime',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			changeField: true,
			span: 8,
		},
		{
			label: '能力评估等级（市标）评估单位',
			prop: 'cityLevelUnit',
			maxlength: '50',
			showWordLimit: true,
			changeField: true,
			type: 'text',
			span: 8,
		},
	],
}

export const ExtendFormConfig = {
	prop: 'dp_service_object_extend',
	inline: false,
	showBtn: false,
	labelPosition: 'top',
	column: [
		{
			label: '民族',
			prop: 'nationality',
			propName: 'nationalityLabel',
			type: 'remoteSelect',
			code: 'NATIONALITY',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '婚姻状况',
			prop: 'maritalStatus',
			propName: 'maritalStatusLabel',
			type: 'remoteSelect',
			code: 'MARITAL_STATUS',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},

		{
			label: '是否留守',
			prop: 'isStayBehind',
			propName: 'isStayBehindLabel',
			rules: [{ required: true, message: '请选择是否留守' }],
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
			span: 8,
		},
		{
			label: '是否孤老',
			prop: 'isLonelyOld',
			propName: 'isLonelyOldLabel',
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
			rules: [{ required: true, message: '请选择是否孤老' }],
			span: 8,
		},
		{
			label: '是否享受长护险',
			prop: 'isLongCare',
			propName: 'isLongCareLabel',
			rules: [{ required: true, message: '请选择是否享受长护险' }],
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
			span: 8,
		},
		{
			label: '长护险服务签约时间',
			prop: 'longCareTime',
			type: 'date',
			format: 'YYYY年MM月DD日',
			valueFormat: 'YYYY-MM-DD',
			span: 8,
		},
		{
			label: '长护险月报销资金',
			prop: 'longCareCapital',
			append: '（元/月）',
			isNum: true,
			// rules: [{ pattern: '^[0-9]*$', message: '请输入正确的金额' }],
			type: 'input',
			span: 8,
		},
		{
			label: '政治面貌',
			prop: 'politicalStatus',
			propName: 'politicalStatusLabel',
			type: 'remoteSelect',
			code: 'POLITICAL_STATUS',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '享受保障待遇',
			prop: 'enjoyTreatment',
			propName: 'enjoyTreatmentLabel',
			type: 'remoteSelect',
			code: 'ENJOY_TREATMENT',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '退休类别',
			prop: 'retireType',
			propName: 'retireTypeLabel',
			type: 'remoteSelect',
			code: 'RETIRE_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '离退休前单位工作性质',
			prop: 'retireWork',
			propName: 'retireWorkLabel',
			type: 'remoteSelect',
			code: 'RETIRE_WORK',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '文化程度',
			prop: 'educationDegree',
			propName: 'educationDegreeLabel',
			type: 'remoteSelect',
			code: 'EDUCATION_DEGREE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '宗教信仰',
			prop: 'religiousBelief',
			propName: 'religiousBeliefLabel',
			type: 'remoteSelect',
			code: 'RELIGIOUS_BELIEF',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},

		{
			label: '医疗保障',
			prop: 'medicalSecurity',
			propName: 'medicalSecurityLabel',
			type: 'remoteSelect',
			code: 'MEDICAL_SECURITY',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '优待证编号',
			prop: 'preferenceCard',
			maxlength: '50',
			showWordLimit: true,
			type: 'text',
			span: 8,
		},
		{
			label: '原照料情况',
			prop: 'careSituation',
			propName: 'careSituationLabel',
			type: 'remoteSelect',
			code: 'CARE_SITUATION',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '社会活动情况',
			prop: 'socialActivitiesSituation',
			propName: 'socialActivitiesSituationLabel',
			type: 'remoteSelect',
			code: 'SOCIAL_ACTIVITIES_SITUATE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '社会活动类型',
			prop: 'socialActivitiesType',
			propName: 'socialActivitiesTypeLabel',
			type: 'remoteSelect',
			code: 'SOCIAL_ACTIVITIES_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '特长',
			prop: 'specialty',
			propName: 'specialtyLabel',
			type: 'remoteSelect',
			code: 'SPECIALTY',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		//--------------------社保信息 ----------------
		{
			type: 'DividerHtml',
			modelValue: '社保信息',
			labelPosition: 'top',
			position: 'center',
			span: 24,
		},
		{
			label: '是否参加社保',
			prop: 'isSocialSecurity',
			propName: 'isSocialSecurityLabel',
			rules: [{ required: true, message: '请选择是否参加社保' }],
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
			span: 8,
		},
		{
			label: '社保卡号',
			prop: 'socialCard',
			maxlength: '50',
			showWordLimit: true,
			type: 'text',
			span: 8,
		},
		{
			label: '社会保障',
			prop: 'socialSecurity',
			propName: 'socialSecurityLabel',
			type: 'remoteSelect',
			code: 'SOCIAL_SECURITY',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		//--------------------银行账户信息 ----------------
		{
			type: 'DividerHtml',
			modelValue: '银行账户信息',
			labelPosition: 'top',
			position: 'center',
			span: 24,
		},
		{
			label: '开户网点名称',
			prop: 'accountName',
			maxlength: '50',
			showWordLimit: true,
			type: 'text',
			span: 8,
		},
		{
			label: '开户银行',
			prop: 'depositBank',
			maxlength: '50',
			showWordLimit: true,
			type: 'text',
			span: 8,
		},
		{
			label: '银行卡号/存折号',
			prop: 'bankAccount',
			maxlength: '50',
			showWordLimit: true,
			type: 'text',
			span: 8,
		},
		{
			label: '子女数量',
			prop: 'childrenNumber',
			isNum: true,
			type: 'input',
			span: 8,
		},
		{
			label: '是否独生子女家庭',
			prop: 'isOneChild',
			propName: 'isOneChildLabel',
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
			span: 8,
		},
		//--------------------资料信息 ----------------
		{
			type: 'DividerHtml',
			modelValue: '资料信息',
			labelPosition: 'top',
			position: 'center',
			span: 24,
		},
		{
			label: '',
			type: 'dynamic',
			prop: 'dp_service_object_material',
			span: 24,
			column: [
				{
					label: '资料类型',
					prop: 'dataType',
					propName: 'dataTypeLabel',
					type: 'remoteSelect',
					code: 'MATERIAL_DATA_TYPE',
					api: 'getDictItemList',
					filterKey: 'value',
					multiple: false,
					// width: '120px',
					showLabel: false,
					rules: [{ required: true, message: '请选择资料类型' }],
				},
				{
					label: '到期时间',
					prop: 'endTime',
					type: 'date',
					format: 'YYYY年MM月DD日',
					valueFormat: 'YYYY-MM-DD',
					span: 12,
					// width: '120px',
					showLabel: false,
				},
				// {
				// 	label: '资料编号',
				// 	prop: 'dataId',
				// 	type: 'input',
				// 	// width: '120px',
				// 	showLabel: false,
				// },
				{
					label: '资料图片',
					prop: 'material',
					type: 'upload',
					custome: 'file',
					fileType: uploadType.fileMetaType,
					listType: 'text',
					labelPosition: 'top',
					showFileList: true,
					limit: 4,
					multiple: true,
					span: 24,
					showLabel: false,
				},
			],
		},
		//--------------------联系人信息 ----------------
		{
			type: 'DividerHtml',
			modelValue: '联系人信息',
			prop: 'contactHtml',
			labelPosition: 'top',
			position: 'center',
			span: 24,
		},
		{
			label: '',
			type: 'dynamic',
			prop: 'dp_service_object_contact',
			span: 24,
			changeField: true,
			column: [
				{
					label: '姓名',
					prop: 'contactName',
					maxlength: '20',
					showWordLimit: true,
					type: 'text',
					showLabel: false,
					span: 8,
				},
				{
					label: '联系方式',
					prop: 'contactTelephone',
					maxlength: '11',
					showWordLimit: true,
					type: 'text',
					showLabel: false,
					span: 8,
				},
				{
					label: '和老人关系',
					prop: 'elderlyRelationship',
					propName: 'elderlyRelationshipLabel',
					type: 'remoteSelect',
					code: 'ELDERLY_RELATIONSHIP',
					api: 'getDictItemList',
					filterKey: 'value',
					multiple: false,
					showLabel: false,
					span: 8,
				},
				{
					label: '证件号码',
					prop: 'contactCardId',
					showWordLimit: true,
					type: 'text',
					showLabel: false,
					span: 8,
				},
				{
					label: '现居地区',
					prop: 'contactAreas',
					propName: 'contact_areas_name',
					type: 'AplidAreaSelect',
					span: 8,
					showLabel: false,
				},
			],
		},
	],
}
export const OtherFormConfig = {
	prop: 'dp_service_object_other',
	inline: false,
	showBtn: false,
	labelPosition: 'top',
	column: [
		//--------------------经济状况 ----------------
		{
			type: 'DividerHtml',
			modelValue: '经济状况',
			labelPosition: 'top',
			position: 'center',
			span: 24,
		},
		{
			label: '经济状况',
			prop: 'economicSituation',
			propName: 'economicSituationLabel',
			type: 'remoteSelect',
			code: 'ECONOMIC_SITUATION',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '年度可支配收入',
			prop: 'disposableIncome',
			propName: 'disposableIncomeLabel',
			type: 'remoteSelect',
			code: 'DISPOSABLE_INCOME',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '收入来源',
			prop: 'incomeSource',
			propName: 'incomeSourceLabel',
			type: 'remoteSelect',
			code: 'INCOME_SOURCE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},

		{
			label: '个人年收入',
			prop: 'annualSalary',
			type: 'input',
			isNum: true,
			append: '（元）',
			rules: [{ validator: regularRule.number, message: '请输入正确的数量' }],
			span: 8,
		},
		{
			label: '家庭年收入',
			prop: 'familySalary',
			type: 'input',
			isNum: true,
			append: '（元）',
			rules: [{ validator: regularRule.number, message: '请输入正确的数量' }],
			span: 8,
		},

		{
			label: '经济困难证明',
			prop: 'economicHardship',
			type: 'upload',
			fileType: uploadType.fileMetaType,
			listType: 'text',
			labelPosition: 'top',
			showFileList: true,
			limit: 4,
			multiple: true,
			span: 8,
		},
		//--------------------居住条件 ----------------
		{
			type: 'DividerHtml',
			modelValue: '居住条件',
			labelPosition: 'top',
			position: 'center',
			span: 24,
		},
		{
			label: '住房性质',
			prop: 'housingProperty',
			propName: 'housingPropertyLabel',
			code: 'HOUSEING_PROPERTY',
			type: 'remoteSelect',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '居室',
			prop: 'liveRoom',
			propName: 'liveRoomLabel',
			type: 'remoteSelect',
			code: 'LIVE_ROOM',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '是否有出入无障碍设施',
			prop: 'isAccessibility',
			propName: 'isAccessibilityLabel',
			span: 8,
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
		},
		{
			label: '是否有楼层电梯',
			prop: 'isElevator',
			propName: 'isElevatorLabel',
			span: 8,
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
		},
		{
			label: '居住楼层（楼层无电梯的）',
			prop: 'liveFloor',
			propName: 'liveFloorLabel',
			type: 'remoteSelect',
			code: 'LIVE_FLOOR',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '是否有室内厕所',
			prop: 'isToilet',
			propName: 'isToiletLabel',
			span: 8,
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
		},
		{
			label: '是否有室内洗浴设备',
			prop: 'isBathEquipment',
			propName: 'isBathEquipmentLabel',
			span: 8,
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
		},
		{
			label: '是否有室内无障碍设施',
			prop: 'isIndoorAccessibility',
			propName: 'isIndoorAccessibilityLabel',
			span: 8,
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
		},
		{
			label: '是否有室内洗浴设施',
			prop: 'isBathingFacilities',
			propName: 'isBathingFacilitiesLabel',
			span: 8,
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
		},
		{
			label: '是否有居住安全风险',
			prop: 'isSafetyRisks',
			propName: 'isSafetyRisksLabel',
			span: 8,
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
		},
		{
			label: '是否完成适老化改造',
			prop: 'isRetrofit',
			propName: 'isRetrofitLabel',
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
			span: 8,
		},
		// {
		// 	label: '备注',
		// 	prop: 'note',
		// 	type: 'textarea',
		// 	maxlength: '140',
		// 	span: 24,
		// 	showWordLimit: true,
		// },
		//--------------------健康诊断内容 ----------------
		{
			type: 'DividerHtml',
			modelValue: '健康诊断内容',
			labelPosition: 'top',
			position: 'center',
			span: 24,
		},
		// {
		// 	label: '健康诊断结论',
		// 	prop: 'healthConclusion',
		// 	type: 'textarea',
		// 	maxlength: '50',
		// 	rules: [{ required: true, message: '请输入健康诊断结论' }],
		// 	rows: 1,
		// 	showWordLimit: true,
		// 	span: 12,
		// },
		{
			label: '过敏物',
			prop: 'allergens',
			type: 'textarea',
			maxlength: '50',
			rows: 1,
			showWordLimit: true,
			span: 8,
		},
		// {
		// 	label: '症状描述',
		// 	prop: 'symptomDescription',
		// 	type: 'textarea',
		// 	maxlength: '140',
		// 	rows: 1,
		// 	showWordLimit: true,
		// 	span: 12,
		// },
		{
			label: '用药内容',
			prop: 'medicationContent',
			type: 'textarea',
			maxlength: '140',
			rows: 1,
			showWordLimit: true,
			span: 8,
		},
		{
			label: '用药时间段',
			prop: 'dosingTime',
			type: 'textarea',
			maxlength: '140',
			rows: 1,
			showWordLimit: true,
			span: 8,
		},
		{
			label: '用药描述',
			prop: 'medicationDescription',
			type: 'textarea',
			maxlength: '140',
			rows: 1,
			showWordLimit: true,
			span: 8,
		},
		{
			label: '体征数据',
			prop: 'signsData',
			type: 'textarea',
			maxlength: '140',
			rows: 1,
			showWordLimit: true,
			span: 8,
		},
		// {
		// 	label: '备注',
		// 	prop: 'healthDiagnosisNote',
		// 	type: 'textarea',
		// 	maxlength: '140',
		// 	rows: 1,
		// 	showWordLimit: true,
		// 	span: 12,
		// },
	],
}

export const detailConfig = {
	inline: false,
	labelPosition: 'left',
	column: [
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '基本信息',
			span: 24,
		},
		{ label: '户籍地区', prop: 'crAreaName', span: 8 },
		{ label: '户籍地址', prop: 'crAddress', span: 8 },
		{
			label: '户籍类型',
			prop: 'crTypeLabel',
			span: 8,
		},
		{
			label: '户籍与现居地址一致',
			prop: 'isSameAdress',
			propName: 'isSameAdressLabel',
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
			span: 8,
		},
		{ label: '户籍地邮政编码', prop: 'crPostalCode', span: 8 },
		{
			label: '是否使用智能手机',
			prop: 'whetherPhone',
			span: 8,
			custome: 'tag',
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
			control: (e, model) => {
				return {
					telephone: {
						display: e == 1,
					},
				}
			},
		},
		{
			label: '证件类型',
			prop: 'cardTypeLabel',
			span: 8,
		},
		{ label: '证件号码', prop: 'idCard', span: 8 },

		{ label: '联系方式', prop: 'telephone', span: 8 },
		{ label: '家庭固话', prop: 'phone', span: 8 },
		{ label: '现居地区', prop: 'areas_name', span: 8 },
		{ label: '现居地址', prop: 'address', span: 8 },
		{
			label: '生存状态',
			prop: 'existence',
			propName: 'existenceLabel',
			type: 'remoteSelect',
			code: 'EXISTENCE_STATUS',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			changeField: true,
			span: 8,
		},
		{ label: '去世时间', prop: 'deadTime', span: 8 },
		{
			label: '老人类别（政府兜底保障对象）',
			prop: 'elderlyType',
			propName: 'elderlyTypeLabel',
			type: 'remoteSelect',
			code: 'ELDERLY_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '老人类别（探访对象）',
			prop: 'visitorElderlyTypeLabel',
			span: 8,
		},
		{
			label: '居住情况',
			prop: 'residence',
			propName: 'residenceLabel',
			type: 'remoteSelect',
			code: 'LIVE_SITUATE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{
			label: '常住时间',
			prop: 'liveTimeLabel',
			span: 8,
		},
		{
			label: '存在监护人（联系人）',
			prop: 'isWithGuardian',
			propName: 'isWithGuardianLabel',
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
			span: 8,
		},
		// {
		// 	label: '评估状态',
		// 	prop: 'evaluationStatusLabel',
		// 	span: 8,
		// },
		// {
		// 	label: '入住信息',
		// 	prop: 'buildInfo',
		// 	propName: 'checkInRoomNumber',
		// 	type: 'BuildRoomBed',
		// 	deepLevel: 3,
		// 	span: 24,
		// },
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '老人需求',
			span: 24,
		},
		// {
		// 	label: '养老方式',
		// 	prop: 'seniorLiving',
		// 	propName: 'seniorLivingLabel',
		// 	type: 'remoteSelect',
		// 	changeField: true,
		// 	code: 'SENIOR_LIVING',
		// 	api: 'getDictItemList',
		// 	filterKey: 'value',
		// 	multiple: false,
		// 	span: 8,
		// },
		{
			label: '养老需求',
			prop: 'elderlyCareDemand',
			propName: 'elderlyCareDemandLabel',
			type: 'remoteSelect',
			code: 'ELDERLY_DEMAND',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: true,
			span: 8,
		},
		{ label: '其他需求', prop: 'elderlyCareOther', span: 8 },
		// {
		// 	label: '是否已接受居家上门服务',
		// 	prop: 'isAcceptedHome',
		// 	custome: 'tag',
		// 	dicData: [
		// 		{ label: '否', value: 0, type: 'danger' },
		// 		{ label: '是', value: 1, type: 'success' },
		// 	],
		// 	span: 8,
		// },
		{
			label: '居家上门服务协议',
			prop: 'homeAgreement',
			span: 8,
			custome: 'file',
		},
		{ label: '协议到期时间', prop: 'homeAgreementDate', span: 8 },
		// {
		// 	label: '居家上门服务协议签订组织名称',
		// 	prop: 'homeOrganizationName',
		// 	labelWidth: '320',
		// 	span: 8,
		// },
		// {
		// 	label: '居家上门服务协议签订组织统一社会信用代码',
		// 	prop: 'homeOrganizationCode',
		// 	labelWidth: '320',
		// 	span: 8,
		// },
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '残疾状况',
			span: 24,
		},
		{
			label: '是否残疾',
			prop: 'isDisability',
			custome: 'tag',
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
			control: (e, model) => {
				return {
					disabilityType: {
						display: e == 1,
					},
					disabilityClass: {
						display: e == 1,
					},
					disabilityCertificateId: {
						display: e == 1,
					},
					disabilityPhone: {
						display: e == 1,
					},
					disabilityDate: {
						display: e == 1,
					},
				}
			},
			span: 8,
		},
		{
			label: '残疾类型',
			prop: 'disabilityTypeLabel',
			span: 8,
		},
		{
			label: '残疾等级',
			prop: 'disabilityClassLabel',
			span: 8,
		},
		// { label: '残疾证号', prop: 'disabilityCertificateId', span: 8 },
		{ label: '残疾证', prop: 'disabilityPhoto', custome: 'img', span: 8 },
		{ label: '残疾证到期时间', prop: 'disabilityDate', span: 8 },
		{
			type: 'DividerHtml',
			labelPosition: 'top',
			position: 'center',
			modelValue: '能力等级',
			span: 24,
		},
		{
			label: '是否完成能力等级评估',
			prop: 'isLevel',
			type: 'remoteSelect',
			code: 'COMMON_FLAG',
			api: 'getDictItemList',
			span: 8,
		},
		{
			label: '能力评估等级（国标）',
			prop: 'countryLevel',
			propName: 'countryLevelLabel',
			type: 'remoteSelect',
			code: 'ACCESS_LEVEL_COUNTRY',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{ label: '能力评估（国标）时间', prop: 'countryEvaluationTime', span: 8 },
		{ label: '能力评估等级（国标）单位', prop: 'countryLevelUnit', span: 8 },
		{
			label: '能力评估等级（市标）',
			prop: 'cityLevel',
			propName: 'cityLevelLabel',
			type: 'remoteSelect',
			code: 'ACCESS_LEVEL_CITY',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 8,
		},
		{ label: '能力评估（市标）时间', prop: 'cityEvaluationTime', span: 8 },
		{ label: '能力评估等级（市标）单位', prop: 'cityLevelUnit', span: 8 },
	],
}

export const tableConfig = {
	stripe: true,
	border: true,
	maxHeight: '80vh',
	columns: [
		{ label: '户籍地区', prop: 'tableCrAreaName', width: 220 },
		{ label: '证件号码', prop: 'idCard', plusXing: '2,2' },
		{
			label: '姓名',
			prop: 'name',
		},
		{
			label: '性别',
			prop: 'genderLabel',
		},
		{ label: '年龄', prop: 'age' },
		{ label: '联系方式', prop: 'telephone', plusXing: '5,2' },
		{ label: '现居地区', prop: 'tableAreaName' },
		{
			label: '老人类别（政府兜底保障对象）',
			prop: 'elderlyType',
			custome: 'dict',
			code: 'ELDERLY_TYPE',
		},
		{
			label: '居住情况',
			prop: 'residence',
			custome: 'dict',
			code: 'LIVE_SITUATE',
		},
		{ label: '入库时间', prop: 'createTime' },
		{
			label: '上链状态',
			prop: 'onBlockchainFlag',
			api: 'geiDictItemList',
			type: 'remoteSelect',
			code: 'BLOCK_CHAIN_STATUS',
			tipProp: 'onBlockchainTime',
			tipLabel: '上链时间',
		},
		{
			label: '操作',
			prop: 'menu',
			width: 200,
			fixed: 'right',
		},
	],
}

export const searchConfig = {
	inline: true,
	showBtn: true,
	labelPosition: 'left',
	labelWidth: '98px',
	column: [
		{
			label: '证件号码',
			prop: 'idCard',
			type: 'input',
			span: 6,
		},
		{
			label: '户籍地区',
			prop: 'crAreas',
			checkStrictly: true,
			type: 'AplidAreaSelect',
			span: 12,
		},
		{
			label: '姓名',
			prop: 'name',
			type: 'input',
			span: 6,
		},
		{
			label: '联系方式',
			prop: 'telephone',
			type: 'input',
			span: 6,
		},
		{
			label: '服务对象类别',
			prop: 'elderlyType',
			type: 'remoteSelect',
			code: 'ELDERLY_TYPE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 6,
		},
		// {
		// 	label: '评估状态',
		// 	prop: 'evaluationStatus',
		// 	code: 'EVALUATION_STATUS',
		// 	type: 'remoteSelect',
		// 	api: 'getDictItemList',
		// 	filterKey: 'value',
		// 	multiple: false,
		// 	span: 6,
		// },
		{
			label: '居住状态',
			prop: 'residence',
			type: 'remoteSelect',
			code: 'LIVE_SITUATE',
			api: 'getDictItemList',
			filterKey: 'value',
			multiple: false,
			span: 6,
		},
		{
			label: '现居地区',
			prop: 'areas',
			propName: 'address',
			checkStrictly: true,
			type: 'AplidAreaSelect',
			span: 6,
		},
	],
}
